package com.kitty.game.task.model.user;

/**
 * 正在进行的任务
 */
public class DoingTask {
    /**任务id*/
    private int taskId;
    /**目标完成进度*/
    private int targetProgress;

    /**任务对应的战斗ID*/
    private int fightId;
    /**任务中出现的NPC ID*/
    private int npcId;

    /**任务接取时间*/
    private long createTime;


    public DoingTask() {
    }

    public DoingTask(int taskId, int targetProgress) {
        this.taskId = taskId;
        this.targetProgress = targetProgress;
        this.createTime = System.currentTimeMillis();
    }

    public int getTaskId() {
        return taskId;
    }

    public void setTaskId(int taskId) {
        this.taskId = taskId;
    }

    public int getTargetProgress() {
        return targetProgress;
    }

    public void setTargetProgress(int targetProgress) {
        this.targetProgress = targetProgress;
    }

    /***
     * 增加目标进度
     */
    public void addProgress(int targetIndex) {
        /**理论上1次都只加1*/
        targetProgress = targetIndex + 1;
    }

    public int getFightId() {
        return fightId;
    }

    public void setFightId(int fightId) {
        this.fightId = fightId;
    }

    public int getNpcId() {
        return npcId;
    }

    public void setNpcId(int npcId) {
        this.npcId = npcId;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }
}